import request from '@/utils/request'

// 查询采购商账号列表
export function memberList (query) {
  return request({
    url: '/purchaser/member',
    method: 'get',
    params: query
  })
}

//修改账号状态
export function updateDisabled (id, disabled) {
  return request({
    url: `/purchaser/member/${id}/disabled`,
    method: 'put',
    data: {disabled: disabled}
  })
}

// 删除 采购商账号 行
export function memberDel (id) {
  return request({
    url: `/purchaser/member/${id}`,
    method: 'delete',
  })
}

//刷新临时密码
export function refreshTmpPwd (id) {
  return request({
    url: `/purchaser/member/${id}/temporaryPwd`,
    method: 'get'
  })
}
